package io.renren.modules.stm.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.stm.dao.SectionsDao;
import io.renren.modules.stm.entity.SectionsEntity;
import io.renren.modules.stm.service.SectionsService;


@Service("sectionsService")
public class SectionsServiceImpl extends ServiceImpl<SectionsDao, SectionsEntity> implements SectionsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SectionsEntity> page = this.page(
                new Query<SectionsEntity>().getPage(params),
                new QueryWrapper<SectionsEntity>()
        );

        return new PageUtils(page);
    }

}